<template>
	<view>
		<view  v-for="(item,index) in datalist" style="margin: 10rpx;">
		<NewCardView 
		:title="item.title"
		:isTop="item.isTop"
		:author="item.author"
		:comments="item.comments"
		:timedata="item.timedata"
		:mode= "item.newstype"
		:images="item.imagelist">
		</NewCardView>
		</view>
	</view>
</template>

<script>
	import NewCardView from '../../components/NewCardView.vue'
	import newsData from '../../Data/news.json'
	export default {
		components:{
			NewCardView
		},
		data() {
			return {
				datalist:[]
			}
		},
		onLoad() {
			this.datalist=newsData.datalist
		},
		
		methods: {
			
		}
	}
</script>

<style>

</style>
